aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/[username]/(profile)/+layout.server.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-10 00:07:06 -0700
committerAdam Soltys <[email protected]>2024-10-10 12:18:06 -0700
commitaa5ab97f1b314bd4e7a2358e49572eb1a02baf7b (patch)
tree9fb16551ad69418702bac9ec0c14425aa2089e95 /src/routes/(app)/[username]/(profile)/+layout.server.ts
parent3b81537518b8ee89848628899eeec9462c8c4bb0 (diff)
downloadcoinos-ui-aa5ab97f1b314bd4e7a2358e49572eb1a02baf7b.tar.gz
coinos-ui-aa5ab97f1b314bd4e7a2358e49572eb1a02baf7b.zip
followers
Diffstat (limited to 'src/routes/(app)/[username]/(profile)/+layout.server.ts')
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.server.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.server.ts b/src/routes/(app)/[username]/(profile)/+layout.server.ts
index ebb0d6ee..14580694 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.server.ts
+++ b/src/routes/(app)/[username]/(profile)/+layout.server.ts
@@ -1,6 +1,6 @@
import { get } from "$lib/utils";
- export async function load({ depends, parent }) {
+export async function load({ depends, parent }) {
depends("app:user");
let { subject, user } = await parent();
@@ -14,13 +14,13 @@ import { get } from "$lib/utils";
console.log("problem fetching follows", e);
}
- // try {
- // subject.followers = await get(`/${subject.pubkey}/followers`);
- // } catch (e) {
- // console.log("problem fetching followers", e);
- // }
+ try {
+ subject.followers = await get(`/${subject.pubkey}/followers`);
+ } catch (e) {
+ console.log("problem fetching followers", e);
+ }
- subject.followers = [];
+ // subject.followers = [];
if (user) {
user.follows = await get(`/${user.pubkey}/follows?tagsonly=true`);
}